<script setup>
import AutoCompleteUser from "@/components/AutoComplete-User.vue";
import {ref, reactive} from "vue";
import DictQuantifySelector from "@/components/DictQuantifySelector.vue";
import webConfig from "@/GlobalParas.js";
import KingUploader from "@/components/KingUploader.vue";

let users = ref([{"tableKey": "05487edb-9d10-4780-a0e3-b4716e8a9b39", "realName": "熊嵚"}])
users.value.push({"tablekey":"1", "realName":'姚磊岳'})


let selectedQuantifyItem = ref(
    {
      tableKey: '4839b7f1-c784-42a3-9b43-30f3d80fc24b',
      parentId: '41d60f55-1a01-40a0-813a-ea21c84de8f6',
      quantifyRule: '省部级重点学科申报（每个重点学科）',
      marks: 30
    }
)

let files = ref([])
</script>

<template>
  <AutoCompleteUser v-for="(item, index) in users" v-model:selected-user="users[index]"></AutoCompleteUser>
  {{ users }}

  <br>
  <div style="height: 100px"></div>
  <DictQuantifySelector v-model:selected-quantify-item="selectedQuantifyItem"></DictQuantifySelector>
  {{ selectedQuantifyItem }}

  <div style="height: 100px"></div>

  <KingUploader v-model:files="files"></KingUploader>
  {{files}}
</template>

<style scoped>

</style>